package com.untrance.shop.common.enums;

import org.springframework.security.core.GrantedAuthority;

/**
 * @author eugene zadyra
 */
public enum UserRole implements GrantedAuthority{
	ROLE_ANONYMOUS("Anonymous"),
	ROLE_CUSTOMER("Customer"),
	ROLE_ADMIN("Admin");
	
	private String description;
	
	private UserRole(String description){
		this.description = description;
	}
	
	public String getDescription(){
		return description;
	}

	@Override
	public String getAuthority() {
		return name();
	}
}
